<div class="pepLegend">This tab lists all identified peptides for this protein. Only the highest scoring peptide spectrum match for a peptide in one experiment is presented and the corresponding MS/MS spectrum can be reviewed by clicking on the sequence.</div>
<g:link action="downloadPeptides" class="download button" id="${Protein}" target="_blank">Download</g:link>
<div class="selectColumns">
  <div class="altText column">Show/Hide Columns</div>
  <div class="columns">
    <div class="column" onClick="showHideColumn(0)"><input type="checkbox" name="col0" checked="checked"> Sequences</div>
    <div class="column" onClick="showHideColumn(1)"><input type="checkbox" name="col1" checked="checked"> Mass [Da]</div>
    <div class="column" onClick="showHideColumn(2)"><input type="checkbox" name="col2" > Position</div>
    <div class="column" onClick="showHideColumn(3)"><input type="checkbox" name="col3" > Length</div>
    <div class="column" onClick="showHideColumn(4)"><input type="checkbox" name="col4" checked="checked"> Missed Cleavages</div>
    <div class="column" onClick="showHideColumn(5)"><input type="checkbox" name="col5" > Razor</div>
    <div class="column" onClick="showHideColumn(6)"><input type="checkbox" name="col6" > Unique (Groups)</div>
    <div class="column" onClick="showHideColumn(7)"><input type="checkbox" name="col7" > Unique (Proteins)</div>
    <div class="column" onClick="showHideColumn(8)"><input type="checkbox" name="col8" checked="checked"> Best Score</div>
    <div class="column" onClick="showHideColumn(9)"><input type="checkbox" name="col9" > PEP</div>
    <div class="column" onClick="showHideColumn(10)"><input type="checkbox" name="col10" checked="checked"> Intensity</div>
    <div class="column" onClick="showHideColumn(11)"><input type="checkbox" name="col11" checked="checked"> Experiment</div>
  </div>
</div>
<div class="peptideTable">
<table id="peptidesList">
  <thead>
    <tr>
      <th>Sequence</th>
      <th>Mass [Da]</th>
      <th>Position</th>
      <th>Length</th>
      <th>Missed Cleavages</th>
      <th>Razor</th>
      <th>Unique (Groups)</th>
      <th>Unique (Proteins)</th>
      <th>Best Score</th>
      <th>PEP</th>
      <th>Intensity</th>
      <th>Experiment</th>
    </tr>
    <tr>
      <td><input type="text" name="search_sequence" value="Search sequences" class="search_init" /></td>
      <td><input type="text" name="search_mass" value="Search Mass [Da]" class="search_init" /></td>
      <td><input type="text" name="search_position" value="Search Position" class="search_init" /></td>
      <td><input type="text" name="search_length" value="Search Length" class="search_init" /></td>
      <td><input type="text" name="search_misclea" value="Search Missed Cleavages" class="search_init" /></td>
      <td><input type="text" name="search_razor" value="Search Razor" class="search_init" /></td>
      <td><input type="text" name="search_uniqg" value="Search Unique (Groups)" class="search_init" /></td>
      <td><input type="text" name="search_uniqp" value="Search Unique (Proteins)" class="search_init" />
      <td><input type="text" name="search_score" value="Search Best Score" class="search_init" /></td>
      <td><input type="text" name="search_pep" value="Search PEP" class="search_init" /></td>
      <td><input type="text" name="search_intensity" value="Search Intensity" class="search_init" /></td>
      <td><input type="text" name="search_experiment" value="Search Experiment" class="search_init" /></td>
    </tr>
  </thead>
  <tbody>
    <g:set var="pepNr" value="${0}" />
    <g:each in="${Peptides}" var="pep">
      <tr>
        <th class="left"><g:remoteLink action="showMsMsSpectra" update="msmsSpectra" params="${[id:params.id, project:pep.currentProject.id, peptide:pep.peptide.id]}" ><div class="addAA">${AABeforeAndAfter[pepNr].before}</div>${pep.peptide.sequence}<div class="addAA">${AABeforeAndAfter[pepNr].after}</div></g:remoteLink></th>
        <th class="right">${pep.peptide.mass}</th>
        <th class="right">${pep.position}</th>
        <th class="right">${pep.peptide.sequence.size()}</th>
        <th>${pep.peptide.missedCleavages}</th>
        <th>${pep.razor}</th>
        <th>${pep.peptide.uniqueGroups}</th>
        <th>${pep.peptide.uniqueProteins}</th>
        <th class="right">${pep.peptide.score}</th>
        <th class="right">${pep.peptide.pep}</th>
        <th class="right">${pep.peptide.intensity}</th>
        <th class="left">${pep.currentProject.name}</th>
      </tr>
      <g:set var="pepNr" value="${pepNr+1}" />
    </g:each>
  </tbody>
</table>
</div>
<script type="text/javascript">
$(document).ready(function() {
    peptidesInit();
} );
  </script>